.class public Lcom/facebook/orca/protocol/WebServiceHandler;
.super Lcom/facebook/orca/server/AbstractOrcaServiceHandlerFilter;
.source "WebServiceHandler.java"


# instance fields
.field private final A:Lcom/facebook/orca/protocol/SendViaChatHandler;

.field private final B:Lcom/facebook/orca/protocol/SetUserSettingsMethod;

.field private final C:Lcom/facebook/orca/protocol/FetchGatekeepersMethod;

.field private final a:Lcom/google/inject/Provider;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/inject/Provider",
            "<",
            "Lcom/facebook/orca/protocol/BatchRunner;",
            ">;"
        }
    .end annotation
.end field

.field private final b:Lcom/google/inject/Provider;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/inject/Provider",
            "<",
            "Lcom/facebook/orca/protocol/SingleMethodRunner;",
            ">;"
        }
    .end annotation
.end field

.field private final c:Lcom/google/inject/Provider;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/inject/Provider",
            "<",
            "Lcom/facebook/orca/protocol/SimulatedBatchRunner;",
            ">;"
        }
    .end annotation
.end field

.field private final d:Lcom/facebook/orca/auth/AuthenticationManager;

.field private final e:Lcom/facebook/orca/protocol/AuthenticateMethod;

.field private final f:Lcom/facebook/orca/protocol/FetchThreadsMethod;

.field private final g:Lcom/facebook/orca/protocol/FetchMoreThreadsMethod;

.field private final h:Lcom/facebook/orca/protocol/FetchThreadMethod;

.field private final i:Lcom/facebook/orca/protocol/GetMeUserMethod;

.field private final j:Lcom/facebook/orca/protocol/SendMessageMethod;

.field private final k:Lcom/facebook/orca/protocol/FetchMoreMessagesMethod;

.field private final l:Lcom/facebook/orca/protocol/AddMembersMethod;

.field private final m:Lcom/facebook/orca/protocol/CreateThreadMethod;

.field private final n:Lcom/facebook/orca/protocol/RegisterPushTokenMethod;

.field private final o:Lcom/facebook/orca/protocol/UnregisterPushTokenMethod;

.field private final p:Lcom/facebook/orca/protocol/UploadPhotoMethod;

.field private final q:Lcom/facebook/orca/protocol/RemoveMemberMethod;

.field private final r:Lcom/facebook/orca/protocol/MarkThreadMethod;

.field private final s:Lcom/facebook/orca/protocol/DeleteThreadMethod;

.field private final t:Lcom/facebook/orca/protocol/SetThreadNameMethod;

.field private final u:Lcom/facebook/orca/protocol/SetThreadImageMethod;

.field private final v:Lcom/facebook/orca/protocol/MarkFolderSeenMethod;

.field private final w:Lcom/facebook/orca/protocol/RequestSmsConfirmationCodeMethod;

.field private final x:Lcom/facebook/orca/protocol/ConfirmPhoneMethod;

.field private final y:Lcom/facebook/orca/protocol/SetThreadMuteUntilMethod;

.field private final z:Lcom/facebook/orca/protocol/FetchAppConfigMethod;


# direct methods
.method public constructor <init>(Lcom/google/inject/Provider;Lcom/google/inject/Provider;Lcom/google/inject/Provider;Lcom/facebook/orca/auth/AuthenticationManager;Lcom/facebook/orca/protocol/AuthenticateMethod;Lcom/facebook/orca/protocol/FetchThreadsMethod;Lcom/facebook/orca/protocol/FetchMoreThreadsMethod;Lcom/facebook/orca/protocol/FetchThreadMethod;Lcom/facebook/orca/protocol/GetMeUserMethod;Lcom/facebook/orca/protocol/SendMessageMethod;Lcom/facebook/orca/protocol/FetchMoreMessagesMethod;Lcom/facebook/orca/protocol/AddMembersMethod;Lcom/facebook/orca/protocol/CreateThreadMethod;Lcom/facebook/orca/protocol/RegisterPushTokenMethod;Lcom/facebook/orca/protocol/UnregisterPushTokenMethod;Lcom/facebook/orca/protocol/UploadPhotoMethod;Lcom/facebook/orca/protocol/RemoveMemberMethod;Lcom/facebook/orca/protocol/MarkThreadMethod;Lcom/facebook/orca/protocol/DeleteThreadMethod;Lcom/facebook/orca/protocol/SetThreadNameMethod;Lcom/facebook/orca/protocol/SetThreadImageMethod;Lcom/facebook/orca/protocol/MarkFolderSeenMethod;Lcom/facebook/orca/protocol/RequestSmsConfirmationCodeMethod;Lcom/facebook/orca/protocol/ConfirmPhoneMethod;Lcom/facebook/orca/protocol/SetThreadMuteUntilMethod;Lcom/facebook/orca/protocol/FetchAppConfigMethod;Lcom/facebook/orca/protocol/SendViaChatHandler;Lcom/facebook/orca/protocol/SetUserSettingsMethod;Lcom/facebook/orca/protocol/FetchGatekeepersMethod;)V
    .locals 3
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/inject/Provider",
            "<",
            "Lcom/facebook/orca/protocol/SingleMethodRunner;",
            ">;",
            "Lcom/google/inject/Provider",
            "<",
            "Lcom/facebook/orca/protocol/BatchRunner;",
            ">;",
            "Lcom/google/inject/Provider",
            "<",
            "Lcom/facebook/orca/protocol/SimulatedBatchRunner;",
            ">;",
            "Lcom/facebook/orca/auth/AuthenticationManager;",
            "Lcom/facebook/orca/protocol/AuthenticateMethod;",
            "Lcom/facebook/orca/protocol/FetchThreadsMethod;",
            "Lcom/facebook/orca/protocol/FetchMoreThreadsMethod;",
            "Lcom/facebook/orca/protocol/FetchThreadMethod;",
            "Lcom/facebook/orca/protocol/GetMeUserMethod;",
            "Lcom/facebook/orca/protocol/SendMessageMethod;",
            "Lcom/facebook/orca/protocol/FetchMoreMessagesMethod;",
            "Lcom/facebook/orca/protocol/AddMembersMethod;",
            "Lcom/facebook/orca/protocol/CreateThreadMethod;",
            "Lcom/facebook/orca/protocol/RegisterPushTokenMethod;",
            "Lcom/facebook/orca/protocol/UnregisterPushTokenMethod;",
            "Lcom/facebook/orca/protocol/UploadPhotoMethod;",
            "Lcom/facebook/orca/protocol/RemoveMemberMethod;",
            "Lcom/facebook/orca/protocol/MarkThreadMethod;",
            "Lcom/facebook/orca/protocol/DeleteThreadMethod;",
            "Lcom/facebook/orca/protocol/SetThreadNameMethod;",
            "Lcom/facebook/orca/protocol/SetThreadImageMethod;",
            "Lcom/facebook/orca/protocol/MarkFolderSeenMethod;",
            "Lcom/facebook/orca/protocol/RequestSmsConfirmationCodeMethod;",
            "Lcom/facebook/orca/protocol/ConfirmPhoneMethod;",
            "Lcom/facebook/orca/protocol/SetThreadMuteUntilMethod;",
            "Lcom/facebook/orca/protocol/FetchAppConfigMethod;",
            "Lcom/facebook/orca/protocol/SendViaChatHandler;",
            "Lcom/facebook/orca/protocol/SetUserSettingsMethod;",
            "Lcom/facebook/orca/protocol/FetchGatekeepersMethod;",
            ")V"
        }
    .end annotation

    .prologue
    .line 119
    const-string v2, "WebServiceHandler"

    invoke-direct {p0, v2}, Lcom/facebook/orca/server/AbstractOrcaServiceHandlerFilter;-><init>(Ljava/lang/String;)V

    .line 120
    iput-object p1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->b:Lcom/google/inject/Provider;

    .line 121
    iput-object p2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->a:Lcom/google/inject/Provider;

    .line 122
    iput-object p3, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->c:Lcom/google/inject/Provider;

    .line 123
    iput-object p4, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->d:Lcom/facebook/orca/auth/AuthenticationManager;

    .line 124
    iput-object p5, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->e:Lcom/facebook/orca/protocol/AuthenticateMethod;

    .line 125
    iput-object p6, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->f:Lcom/facebook/orca/protocol/FetchThreadsMethod;

    .line 126
    iput-object p7, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->g:Lcom/facebook/orca/protocol/FetchMoreThreadsMethod;

    .line 127
    iput-object p8, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->h:Lcom/facebook/orca/protocol/FetchThreadMethod;

    .line 128
    iput-object p9, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->i:Lcom/facebook/orca/protocol/GetMeUserMethod;

    .line 129
    iput-object p10, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->j:Lcom/facebook/orca/protocol/SendMessageMethod;

    .line 130
    iput-object p11, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->k:Lcom/facebook/orca/protocol/FetchMoreMessagesMethod;

    .line 131
    iput-object p12, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->l:Lcom/facebook/orca/protocol/AddMembersMethod;

    .line 132
    move-object/from16 v0, p13

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->m:Lcom/facebook/orca/protocol/CreateThreadMethod;

    .line 133
    move-object/from16 v0, p14

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->n:Lcom/facebook/orca/protocol/RegisterPushTokenMethod;

    .line 134
    move-object/from16 v0, p15

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->o:Lcom/facebook/orca/protocol/UnregisterPushTokenMethod;

    .line 135
    move-object/from16 v0, p16

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->p:Lcom/facebook/orca/protocol/UploadPhotoMethod;

    .line 136
    move-object/from16 v0, p17

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->q:Lcom/facebook/orca/protocol/RemoveMemberMethod;

    .line 137
    move-object/from16 v0, p18

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->r:Lcom/facebook/orca/protocol/MarkThreadMethod;

    .line 138
    move-object/from16 v0, p19

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->s:Lcom/facebook/orca/protocol/DeleteThreadMethod;

    .line 139
    move-object/from16 v0, p20

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->t:Lcom/facebook/orca/protocol/SetThreadNameMethod;

    .line 140
    move-object/from16 v0, p21

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->u:Lcom/facebook/orca/protocol/SetThreadImageMethod;

    .line 141
    move-object/from16 v0, p22

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->v:Lcom/facebook/orca/protocol/MarkFolderSeenMethod;

    .line 142
    move-object/from16 v0, p23

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->w:Lcom/facebook/orca/protocol/RequestSmsConfirmationCodeMethod;

    .line 143
    move-object/from16 v0, p24

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->x:Lcom/facebook/orca/protocol/ConfirmPhoneMethod;

    .line 144
    move-object/from16 v0, p25

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->y:Lcom/facebook/orca/protocol/SetThreadMuteUntilMethod;

    .line 145
    move-object/from16 v0, p26

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->z:Lcom/facebook/orca/protocol/FetchAppConfigMethod;

    .line 146
    move-object/from16 v0, p27

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->A:Lcom/facebook/orca/protocol/SendViaChatHandler;

    .line 147
    move-object/from16 v0, p28

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->B:Lcom/facebook/orca/protocol/SetUserSettingsMethod;

    .line 148
    move-object/from16 v0, p29

    move-object v1, p0

    iput-object v0, v1, Lcom/facebook/orca/protocol/WebServiceHandler;->C:Lcom/facebook/orca/protocol/FetchGatekeepersMethod;

    .line 149
    return-void
.end method

.method private a(Lcom/facebook/orca/server/OutgoingMessage;)Lcom/facebook/orca/server/SendMessageResult;
    .locals 10
    .parameter

    .prologue
    .line 388
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->a:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    move-object v0, v1

    check-cast v0, Lcom/facebook/orca/protocol/BatchRunner;

    move-object v8, v0

    .line 391
    invoke-virtual {p1}, Lcom/facebook/orca/server/OutgoingMessage;->f()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 392
    invoke-virtual {p1}, Lcom/facebook/orca/server/OutgoingMessage;->g()Lcom/facebook/orca/attachments/MediaResource;

    move-result-object v1

    .line 395
    invoke-virtual {v1}, Lcom/facebook/orca/attachments/MediaResource;->a()Lcom/facebook/orca/attachments/MediaResource$Type;

    move-result-object v1

    sget-object v2, Lcom/facebook/orca/attachments/MediaResource$Type;->VIDEO:Lcom/facebook/orca/attachments/MediaResource$Type;

    if-ne v1, v2, :cond_0

    .line 396
    new-instance v1, Lcom/facebook/orca/protocol/UploadPhotoMethod$Params;

    invoke-virtual {p1}, Lcom/facebook/orca/server/OutgoingMessage;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1}, Lcom/facebook/orca/server/OutgoingMessage;->g()Lcom/facebook/orca/attachments/MediaResource;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Lcom/facebook/orca/protocol/UploadPhotoMethod$Params;-><init>(Ljava/lang/String;Lcom/facebook/orca/attachments/MediaResource;)V

    .line 399
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->p:Lcom/facebook/orca/protocol/UploadPhotoMethod;

    invoke-static {v2, v1}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    const-string v2, "attachment-upload"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v1

    invoke-virtual {v8, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 403
    new-instance v1, Lcom/facebook/orca/server/OutgoingMessageBuilder;

    invoke-direct {v1}, Lcom/facebook/orca/server/OutgoingMessageBuilder;-><init>()V

    invoke-virtual {v1, p1}, Lcom/facebook/orca/server/OutgoingMessageBuilder;->a(Lcom/facebook/orca/server/OutgoingMessage;)Lcom/facebook/orca/server/OutgoingMessageBuilder;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/facebook/orca/server/OutgoingMessageBuilder;->a(Lcom/facebook/orca/attachments/MediaResource;)Lcom/facebook/orca/server/OutgoingMessageBuilder;

    move-result-object v1

    const-string v2, "{result=attachment-upload:$.id}"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/server/OutgoingMessageBuilder;->c(Ljava/lang/String;)Lcom/facebook/orca/server/OutgoingMessageBuilder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/orca/server/OutgoingMessageBuilder;->i()Lcom/facebook/orca/server/OutgoingMessage;

    move-result-object v1

    move-object v9, v1

    .line 412
    :goto_0
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->j:Lcom/facebook/orca/protocol/SendMessageMethod;

    invoke-static {v1, v9}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    const-string v2, "send"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v1

    invoke-virtual {v8, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 418
    new-instance v1, Lcom/facebook/orca/server/FetchMoreMessagesParams;

    invoke-virtual {v9}, Lcom/facebook/orca/server/OutgoingMessage;->a()Ljava/lang/String;

    move-result-object v2

    const-wide/16 v3, 0x0

    const-wide/16 v5, -0x1

    const/4 v7, 0x2

    invoke-direct/range {v1 .. v7}, Lcom/facebook/orca/server/FetchMoreMessagesParams;-><init>(Ljava/lang/String;JJI)V

    .line 420
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->k:Lcom/facebook/orca/protocol/FetchMoreMessagesMethod;

    invoke-static {v2, v1}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    const-string v2, "fetch"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    const-string v2, "send"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->b(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v1

    invoke-virtual {v8, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 427
    const-string v1, "sendMessage"

    invoke-virtual {v8, v1}, Lcom/facebook/orca/protocol/BatchRunner;->b(Ljava/lang/String;)V

    .line 428
    const-string v1, "send"

    invoke-virtual {v8, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/String;

    .line 429
    const-string v1, "fetch"

    invoke-virtual {v8, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/facebook/orca/server/FetchMoreMessagesResult;

    .line 432
    new-instance v1, Lcom/facebook/orca/server/SendMessageResult;

    sget-object v2, Lcom/facebook/orca/server/DataFreshnessResult;->FROM_SERVER:Lcom/facebook/orca/server/DataFreshnessResult;

    invoke-virtual {v9}, Lcom/facebook/orca/server/OutgoingMessage;->a()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p0}, Lcom/facebook/orca/server/FetchMoreMessagesResult;->a()Lcom/facebook/orca/threads/MessagesCollection;

    move-result-object v4

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    const/4 v7, 0x0

    invoke-direct/range {v1 .. v7}, Lcom/facebook/orca/server/SendMessageResult;-><init>(Lcom/facebook/orca/server/DataFreshnessResult;Ljava/lang/String;Lcom/facebook/orca/threads/MessagesCollection;JZ)V

    return-object v1

    :cond_0
    move-object v9, p1

    goto :goto_0
.end method


# virtual methods
.method protected a(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 155
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 156
    const-string v1, "passwordCredentials"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/auth/PasswordCredentials;

    .line 157
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->b:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/SingleMethodRunner;

    .line 158
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->e:Lcom/facebook/orca/protocol/AuthenticateMethod;

    invoke-virtual {v1, v2, v0}, Lcom/facebook/orca/protocol/SingleMethodRunner;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/auth/FacebookCredentials;

    .line 159
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->d:Lcom/facebook/orca/auth/AuthenticationManager;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/auth/AuthenticationManager;->a(Lcom/facebook/orca/auth/FacebookCredentials;)V

    .line 160
    invoke-static {v0}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;)Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected b(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 5
    .parameter
    .parameter

    .prologue
    const/4 v3, 0x0

    .line 168
    iget-object v0, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->a:Lcom/google/inject/Provider;

    invoke-interface {v0}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/protocol/BatchRunner;

    .line 171
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->i:Lcom/facebook/orca/protocol/GetMeUserMethod;

    invoke-static {v1, v3}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    const-string v2, "user"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 177
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->z:Lcom/facebook/orca/protocol/FetchAppConfigMethod;

    invoke-static {v1, v3}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    const-string v2, "appConfig"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 183
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->C:Lcom/facebook/orca/protocol/FetchGatekeepersMethod;

    invoke-static {v1, v3}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    const-string v2, "gk"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 188
    const-string v1, "handleLogin"

    invoke-virtual {v0, v1}, Lcom/facebook/orca/protocol/BatchRunner;->b(Ljava/lang/String;)V

    .line 191
    const-string v1, "user"

    invoke-virtual {v0, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/server/GetMeUserResult;

    .line 192
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->d:Lcom/facebook/orca/auth/AuthenticationManager;

    invoke-virtual {v1}, Lcom/facebook/orca/server/GetMeUserResult;->a()Lcom/facebook/orca/users/User;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/facebook/orca/auth/AuthenticationManager;->a(Lcom/facebook/orca/users/User;)V

    .line 195
    const-string v2, "appConfig"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchRunner;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/facebook/orca/appconfig/AppConfig;

    .line 198
    const-string v2, "gk"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchRunner;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/os/Bundle;

    .line 200
    const/4 v2, 0x2

    new-array v2, v2, [Landroid/util/Pair;

    const/4 v3, 0x0

    const-string v4, "appConfig"

    invoke-static {v4, p0}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x1

    const-string v4, "gateKeepers"

    invoke-static {v4, v0}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object v0

    aput-object v0, v2, v3

    invoke-static {v1, v2}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;[Landroid/util/Pair;)Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected c(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 209
    iget-object v0, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->b:Lcom/google/inject/Provider;

    invoke-interface {v0}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/protocol/SingleMethodRunner;

    .line 210
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->o:Lcom/facebook/orca/protocol/UnregisterPushTokenMethod;

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/protocol/SingleMethodRunner;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Ljava/lang/Object;

    .line 211
    invoke-static {}, Lcom/facebook/orca/server/OperationResult;->a()Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected d(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 218
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 219
    const-string v1, "fetchThreadsParams"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/FetchThreadsParams;

    .line 220
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->b:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/SingleMethodRunner;

    .line 221
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->f:Lcom/facebook/orca/protocol/FetchThreadsMethod;

    invoke-virtual {v1, v2, v0}, Lcom/facebook/orca/protocol/SingleMethodRunner;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/facebook/orca/server/FetchThreadsResult;

    .line 222
    invoke-static {p0}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;)Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected e(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 229
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 230
    const-string v1, "fetchMoreThreadsParams"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/FetchMoreThreadsParams;

    .line 231
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->b:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/SingleMethodRunner;

    .line 232
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->g:Lcom/facebook/orca/protocol/FetchMoreThreadsMethod;

    invoke-virtual {v1, v2, v0}, Lcom/facebook/orca/protocol/SingleMethodRunner;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/facebook/orca/server/FetchMoreThreadsResult;

    .line 234
    invoke-static {p0}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;)Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected f(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 9
    .parameter
    .parameter

    .prologue
    .line 241
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v1

    .line 242
    const-string v2, "fetchThreadParams"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v1

    move-object v0, v1

    check-cast v0, Lcom/facebook/orca/server/FetchThreadParams;

    move-object v7, v0

    .line 244
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->a:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    move-object v0, v1

    check-cast v0, Lcom/facebook/orca/protocol/BatchRunner;

    move-object v8, v0

    .line 247
    invoke-virtual {v7}, Lcom/facebook/orca/server/FetchThreadParams;->d()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 248
    new-instance v1, Lcom/facebook/orca/server/MarkThreadParams;

    invoke-virtual {v7}, Lcom/facebook/orca/server/FetchThreadParams;->a()Ljava/lang/String;

    move-result-object v2

    sget-object v3, Lcom/facebook/orca/server/MarkThreadParams$Mark;->READ:Lcom/facebook/orca/server/MarkThreadParams$Mark;

    const/4 v4, 0x1

    invoke-virtual {v7}, Lcom/facebook/orca/server/FetchThreadParams;->e()J

    move-result-wide v5

    invoke-direct/range {v1 .. v6}, Lcom/facebook/orca/server/MarkThreadParams;-><init>(Ljava/lang/String;Lcom/facebook/orca/server/MarkThreadParams$Mark;ZJ)V

    .line 253
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->r:Lcom/facebook/orca/protocol/MarkThreadMethod;

    invoke-static {v2, v1}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    const-string v2, "update-last-read"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v1

    invoke-virtual {v8, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 259
    :cond_0
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->h:Lcom/facebook/orca/protocol/FetchThreadMethod;

    invoke-static {v1, v7}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    const-string v2, "fetch-thread"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    invoke-virtual {v7}, Lcom/facebook/orca/server/FetchThreadParams;->d()Z

    move-result v2

    if-eqz v2, :cond_1

    const-string v2, "update-last-read"

    :goto_0
    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->b(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v1

    invoke-virtual {v8, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 267
    const-string v1, "fetchThread"

    invoke-virtual {v8, v1}, Lcom/facebook/orca/protocol/BatchRunner;->b(Ljava/lang/String;)V

    .line 270
    const-string v1, "fetch-thread"

    invoke-virtual {v8, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/facebook/orca/server/FetchThreadResult;

    .line 271
    invoke-static {p0}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;)Lcom/facebook/orca/server/OperationResult;

    move-result-object v1

    return-object v1

    .line 259
    :cond_1
    const/4 v2, 0x0

    goto :goto_0
.end method

.method protected g(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 4
    .parameter
    .parameter

    .prologue
    .line 278
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 279
    const-string v1, "addMembersParams"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/AddMembersParams;

    .line 282
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->a:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/BatchRunner;

    .line 283
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->l:Lcom/facebook/orca/protocol/AddMembersMethod;

    invoke-static {v2, v0}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v2

    const-string v3, "add-members"

    invoke-virtual {v2, v3}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 289
    invoke-virtual {v0}, Lcom/facebook/orca/server/AddMembersParams;->a()Ljava/lang/String;

    move-result-object v0

    .line 290
    new-instance v2, Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    invoke-direct {v2}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;-><init>()V

    sget-object v3, Lcom/facebook/orca/server/DataFreshnessParam;->CHECK_SERVER_FOR_NEW_DATA:Lcom/facebook/orca/server/DataFreshnessParam;

    invoke-virtual {v2, v3}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(Lcom/facebook/orca/server/DataFreshnessParam;)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(Ljava/lang/String;)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v0

    const/4 v2, 0x2

    invoke-virtual {v0, v2}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(I)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->h()Lcom/facebook/orca/server/FetchThreadParams;

    move-result-object v0

    .line 295
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->h:Lcom/facebook/orca/protocol/FetchThreadMethod;

    invoke-static {v2, v0}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    const-string v2, "fetch"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    const-string v2, "add-members"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->b(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 302
    const-string v0, "addMembers"

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->b(Ljava/lang/String;)V

    .line 305
    const/4 v0, 0x1

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->a(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/facebook/orca/server/FetchThreadResult;

    .line 306
    invoke-static {p0}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;)Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected h(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 313
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 314
    const-string v1, "createThreadParams"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/CreateThreadParams;

    .line 317
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->a:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/BatchRunner;

    .line 318
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->m:Lcom/facebook/orca/protocol/CreateThreadMethod;

    invoke-static {v2, v0}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    const-string v2, "create-thread"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 348
    new-instance v0, Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    invoke-direct {v0}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;-><init>()V

    sget-object v2, Lcom/facebook/orca/server/DataFreshnessParam;->CHECK_SERVER_FOR_NEW_DATA:Lcom/facebook/orca/server/DataFreshnessParam;

    invoke-virtual {v0, v2}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(Lcom/facebook/orca/server/DataFreshnessParam;)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v0

    const-string v2, "{result=create-thread:$.tid}"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(Ljava/lang/String;)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v0

    const/4 v2, 0x3

    invoke-virtual {v0, v2}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(I)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->h()Lcom/facebook/orca/server/FetchThreadParams;

    move-result-object v0

    .line 353
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->h:Lcom/facebook/orca/protocol/FetchThreadMethod;

    invoke-static {v2, v0}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    const-string v2, "fetch-thread"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    const-string v2, "create-thread"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->b(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 360
    const-string v0, "createThread"

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->b(Ljava/lang/String;)V

    .line 361
    const-string v0, "fetch-thread"

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/facebook/orca/server/FetchThreadResult;

    .line 364
    invoke-static {p0}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;)Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected i(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 371
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 372
    const-string v1, "outgoingMessage"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/OutgoingMessage;

    .line 374
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->A:Lcom/facebook/orca/protocol/SendViaChatHandler;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/SendViaChatHandler;->a(Lcom/facebook/orca/server/OutgoingMessage;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 376
    :try_start_0
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->A:Lcom/facebook/orca/protocol/SendViaChatHandler;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/SendViaChatHandler;->b(Lcom/facebook/orca/server/OutgoingMessage;)Lcom/facebook/orca/server/SendMessageResult;

    move-result-object v1

    .line 377
    invoke-static {v1}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;)Lcom/facebook/orca/server/OperationResult;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    .line 384
    :goto_0
    return-object v0

    .line 378
    :catch_0
    move-exception v1

    .line 379
    const-string v2, "WebServiceHandler"

    invoke-virtual {v1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-static {v2, v1}, Lcom/facebook/orca/debug/BLog;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 384
    :cond_0
    invoke-direct {p0, v0}, Lcom/facebook/orca/protocol/WebServiceHandler;->a(Lcom/facebook/orca/server/OutgoingMessage;)Lcom/facebook/orca/server/SendMessageResult;

    move-result-object v0

    invoke-static {v0}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;)Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    goto :goto_0
.end method

.method protected j(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 444
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 445
    const-string v1, "registerPushTokenParams"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/RegisterPushTokenParams;

    .line 447
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->b:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/SingleMethodRunner;

    .line 448
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->n:Lcom/facebook/orca/protocol/RegisterPushTokenMethod;

    invoke-virtual {v1, v2, v0}, Lcom/facebook/orca/protocol/SingleMethodRunner;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Ljava/lang/Object;

    .line 449
    invoke-static {}, Lcom/facebook/orca/server/OperationResult;->a()Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected k(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 456
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 457
    const-string v1, "fetchMoreMessagesParams"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/FetchMoreMessagesParams;

    .line 458
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->b:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/SingleMethodRunner;

    .line 459
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->k:Lcom/facebook/orca/protocol/FetchMoreMessagesMethod;

    invoke-virtual {v1, v2, v0}, Lcom/facebook/orca/protocol/SingleMethodRunner;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/facebook/orca/server/FetchMoreMessagesResult;

    .line 461
    invoke-static {p0}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;)Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected l(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 4
    .parameter
    .parameter

    .prologue
    .line 468
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 469
    const-string v1, "removeMemberParams"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/RemoveMemberParams;

    .line 472
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->a:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/BatchRunner;

    .line 473
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->q:Lcom/facebook/orca/protocol/RemoveMemberMethod;

    invoke-static {v2, v0}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v2

    const-string v3, "remove-members"

    invoke-virtual {v2, v3}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 478
    invoke-virtual {v0}, Lcom/facebook/orca/server/RemoveMemberParams;->a()Ljava/lang/String;

    move-result-object v0

    .line 479
    new-instance v2, Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    invoke-direct {v2}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;-><init>()V

    sget-object v3, Lcom/facebook/orca/server/DataFreshnessParam;->CHECK_SERVER_FOR_NEW_DATA:Lcom/facebook/orca/server/DataFreshnessParam;

    invoke-virtual {v2, v3}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(Lcom/facebook/orca/server/DataFreshnessParam;)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(Ljava/lang/String;)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v0

    const/4 v2, 0x2

    invoke-virtual {v0, v2}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(I)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->h()Lcom/facebook/orca/server/FetchThreadParams;

    move-result-object v0

    .line 484
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->h:Lcom/facebook/orca/protocol/FetchThreadMethod;

    invoke-static {v2, v0}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    const-string v2, "fetch"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    const-string v2, "remove-members"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->b(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 491
    const-string v0, "removeMember"

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->b(Ljava/lang/String;)V

    .line 494
    const/4 v0, 0x1

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->a(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/facebook/orca/server/FetchThreadResult;

    .line 495
    invoke-static {p0}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;)Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected m(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 502
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 503
    const-string v1, "markThreadParams"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/MarkThreadParams;

    .line 504
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->b:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/SingleMethodRunner;

    .line 505
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->r:Lcom/facebook/orca/protocol/MarkThreadMethod;

    invoke-virtual {v1, v2, v0}, Lcom/facebook/orca/protocol/SingleMethodRunner;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Ljava/lang/Object;

    .line 506
    invoke-static {}, Lcom/facebook/orca/server/OperationResult;->a()Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected n(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 513
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 514
    const-string v1, "deleteThreadParams"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/DeleteThreadParams;

    .line 515
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->b:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/SingleMethodRunner;

    .line 516
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->s:Lcom/facebook/orca/protocol/DeleteThreadMethod;

    invoke-virtual {v1, v2, v0}, Lcom/facebook/orca/protocol/SingleMethodRunner;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Ljava/lang/Object;

    .line 517
    invoke-static {}, Lcom/facebook/orca/server/OperationResult;->a()Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected o(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 5
    .parameter
    .parameter

    .prologue
    .line 524
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 525
    const-string v1, "modifyThreadParams"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/ModifyThreadParams;

    .line 528
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->c:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/BatchRunner;

    .line 531
    const/4 v2, 0x0

    .line 532
    invoke-virtual {v0}, Lcom/facebook/orca/server/ModifyThreadParams;->b()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 533
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->t:Lcom/facebook/orca/protocol/SetThreadNameMethod;

    invoke-static {v2, v0}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v2

    const-string v3, "setThreadName"

    invoke-virtual {v2, v3}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 537
    const-string v2, "setThreadName"

    .line 541
    :cond_0
    invoke-virtual {v0}, Lcom/facebook/orca/server/ModifyThreadParams;->d()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 542
    iget-object v3, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->u:Lcom/facebook/orca/protocol/SetThreadImageMethod;

    invoke-static {v3, v0}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v3

    const-string v4, "setThreadImage"

    invoke-virtual {v3, v4}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v3

    invoke-virtual {v3, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->b(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 547
    const-string v2, "setThreadImage"

    .line 550
    :cond_1
    invoke-virtual {v0}, Lcom/facebook/orca/server/ModifyThreadParams;->f()Z

    move-result v3

    if-eqz v3, :cond_2

    .line 551
    iget-object v3, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->y:Lcom/facebook/orca/protocol/SetThreadMuteUntilMethod;

    invoke-static {v3, v0}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v3

    const-string v4, "muteThread"

    invoke-virtual {v3, v4}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v3

    invoke-virtual {v3, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->b(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 556
    const-string v2, "muteThread"

    .line 560
    :cond_2
    new-instance v3, Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    invoke-direct {v3}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;-><init>()V

    sget-object v4, Lcom/facebook/orca/server/DataFreshnessParam;->CHECK_SERVER_FOR_NEW_DATA:Lcom/facebook/orca/server/DataFreshnessParam;

    invoke-virtual {v3, v4}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(Lcom/facebook/orca/server/DataFreshnessParam;)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v3

    invoke-virtual {v0}, Lcom/facebook/orca/server/ModifyThreadParams;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(Ljava/lang/String;)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v0

    const/4 v3, 0x2

    invoke-virtual {v0, v3}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(I)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->h()Lcom/facebook/orca/server/FetchThreadParams;

    move-result-object v0

    .line 565
    iget-object v3, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->h:Lcom/facebook/orca/protocol/FetchThreadMethod;

    invoke-static {v3, v0}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    const-string v3, "fetch"

    invoke-virtual {v0, v3}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->b(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 572
    const-string v0, "modifyThread"

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->b(Ljava/lang/String;)V

    .line 575
    const/4 v0, 0x1

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->a(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/facebook/orca/server/FetchThreadResult;

    .line 576
    invoke-static {p0}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;)Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected p(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 583
    iget-object v0, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->b:Lcom/google/inject/Provider;

    invoke-interface {v0}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/protocol/SingleMethodRunner;

    .line 584
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->v:Lcom/facebook/orca/protocol/MarkFolderSeenMethod;

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/protocol/SingleMethodRunner;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Ljava/lang/Object;

    .line 585
    invoke-static {}, Lcom/facebook/orca/server/OperationResult;->a()Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected q(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 593
    invoke-static {}, Lcom/facebook/orca/server/OperationResult;->a()Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected r(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 600
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 601
    const-string v1, "requestSmsConfirmationCodeParams"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/RequestSmsConfirmationCodeParams;

    .line 604
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->b:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/SingleMethodRunner;

    .line 605
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->w:Lcom/facebook/orca/protocol/RequestSmsConfirmationCodeMethod;

    invoke-virtual {v1, v2, v0}, Lcom/facebook/orca/protocol/SingleMethodRunner;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Ljava/lang/Object;

    .line 606
    invoke-static {}, Lcom/facebook/orca/server/OperationResult;->a()Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected s(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 613
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v0

    .line 614
    const-string v1, "confirmPhoneParams"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/ConfirmPhoneParams;

    .line 617
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->c:Lcom/google/inject/Provider;

    invoke-interface {v1}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/protocol/BatchRunner;

    .line 620
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->x:Lcom/facebook/orca/protocol/ConfirmPhoneMethod;

    invoke-static {v2, v0}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    const-string v2, "confirm-phone"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 625
    iget-object v0, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->i:Lcom/facebook/orca/protocol/GetMeUserMethod;

    const/4 v2, 0x0

    invoke-static {v0, v2}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    const-string v2, "get-me-user"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    const-string v2, "confirm-phone"

    invoke-virtual {v0, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->b(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 631
    const-string v0, "confirmPhone"

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->b(Ljava/lang/String;)V

    .line 633
    const/4 v0, 0x1

    invoke-virtual {v1, v0}, Lcom/facebook/orca/protocol/BatchRunner;->a(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/GetMeUserResult;

    .line 634
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->d:Lcom/facebook/orca/auth/AuthenticationManager;

    invoke-virtual {v0}, Lcom/facebook/orca/server/GetMeUserResult;->a()Lcom/facebook/orca/users/User;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/facebook/orca/auth/AuthenticationManager;->a(Lcom/facebook/orca/users/User;)V

    .line 635
    invoke-static {}, Lcom/facebook/orca/server/OperationResult;->a()Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected t(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 4
    .parameter
    .parameter

    .prologue
    const/4 v3, 0x0

    .line 642
    iget-object v0, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->a:Lcom/google/inject/Provider;

    invoke-interface {v0}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/protocol/BatchRunner;

    .line 645
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->z:Lcom/facebook/orca/protocol/FetchAppConfigMethod;

    invoke-static {v1, v3}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    const-string v2, "appConfig"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 651
    iget-object v1, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->C:Lcom/facebook/orca/protocol/FetchGatekeepersMethod;

    invoke-static {v1, v3}, Lcom/facebook/orca/protocol/BatchOperation;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    const-string v2, "gk"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a(Ljava/lang/String;)Lcom/facebook/orca/protocol/BatchOperation$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/orca/protocol/BatchOperation$Builder;->a()Lcom/facebook/orca/protocol/BatchOperation;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Lcom/facebook/orca/protocol/BatchOperation;)V

    .line 656
    const-string v1, "handleGetAppInfo"

    invoke-virtual {v0, v1}, Lcom/facebook/orca/protocol/BatchRunner;->b(Ljava/lang/String;)V

    .line 659
    const-string v1, "appConfig"

    invoke-virtual {v0, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/facebook/orca/appconfig/AppConfig;

    .line 662
    const-string v1, "gk"

    invoke-virtual {v0, v1}, Lcom/facebook/orca/protocol/BatchRunner;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/os/Bundle;

    .line 664
    const/4 v1, 0x1

    new-array v1, v1, [Landroid/util/Pair;

    const/4 v2, 0x0

    const-string v3, "gateKeepers"

    invoke-static {v3, v0}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object v0

    aput-object v0, v1, v2

    invoke-static {p0, v1}, Lcom/facebook/orca/server/OperationResult;->a(Landroid/os/Parcelable;[Landroid/util/Pair;)Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method

.method protected u(Lcom/facebook/orca/server/OperationParams;Lcom/facebook/orca/server/OrcaServiceHandler;)Lcom/facebook/orca/server/OperationResult;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 672
    iget-object v0, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->b:Lcom/google/inject/Provider;

    invoke-interface {v0}, Lcom/google/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/protocol/SingleMethodRunner;

    .line 673
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationParams;->b()Landroid/os/Bundle;

    move-result-object v1

    .line 674
    const-string v2, "setSettingsParams"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v1

    check-cast v1, Lcom/facebook/orca/server/SetSettingsParams;

    .line 675
    iget-object v2, p0, Lcom/facebook/orca/protocol/WebServiceHandler;->B:Lcom/facebook/orca/protocol/SetUserSettingsMethod;

    invoke-virtual {v0, v2, v1}, Lcom/facebook/orca/protocol/SingleMethodRunner;->a(Lcom/facebook/orca/protocol/ApiMethod;Ljava/lang/Object;)Ljava/lang/Object;

    .line 676
    invoke-static {}, Lcom/facebook/orca/server/OperationResult;->a()Lcom/facebook/orca/server/OperationResult;

    move-result-object v0

    return-object v0
.end method
